package com.tianji.learning.controller;


import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;
import com.tianji.learning.service.IPointsBoardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学霸天梯榜 前端控制器
 * </p>
 *
 * @author 老李头儿
 * @since 2025-03-31
 */
@Api(tags = "学霸天梯榜")
@RestController
@RequestMapping("/boards")
@RequiredArgsConstructor
public class PointsBoardController {
    private final IPointsBoardService pointsBoardService;

    /**
     * @param query
     * @Description 分页查询赛季积分
     * @Author 老李头儿
     * @Date 2025年04月02 10:37:00
     * @Return java.lang.String
     **/

    @ApiOperation("分页查询赛季积分")
    @GetMapping
    public PointsBoardVO queryPointsBoard(PointsBoardQuery query) {
        return pointsBoardService.queryPage(query);
    }

}
